/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.cgb.portal.bo;

import br.cgb.portal.entity.News;
import br.cgb.portal.facade.NewsFacade;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author LUCAS
 */
@Stateless
public class NewsBO implements Serializable {

    @EJB
    private NewsFacade newsFacade;

    public NewsFacade getNewsFacade() {
        return newsFacade;
    }

    public void create(News news) {
        getNewsFacade().create(news);
    }

    public void edit(News news) {
        getNewsFacade().edit(news);
    }

    public void remove(News news) {
        getNewsFacade().remove(news);
    }

    public News find(Object id) {
        return getNewsFacade().find(id);
    }

    public List<News> findAll() {
        return getNewsFacade().findAll();
    }
}
